
package com.drumbeatinsight.html {
	import com.drumbeatinsight.controls.HTML;
	

	public class HTMLEditor extends HTMLElement {
	
		public function HTMLEditor(o:HTML) {
			type = "editor";
			id = o.id;
			name = (o.name!=null) ? o.name : o.id;
			width = String(o.contentWidth);
			height = String(o.contentHeight);
			x = o.contentLeft;
			y = o.contentTop;
			source = o.source;
			htmlText = (o.explicitHTMLText!=null) ? o.explicitHTMLText : "";
			htmlScrollPolicy = o.htmlScrollPolicy;
			color = padColor(o, "color");
			backgroundColor = padColor(o, "backgroundColor");
			backgroundTransparent = o.backgroundTransparent;
			editorPath = o.editorPath;
			configPath = o.configPath;
			includesBefore = o.includesBefore;
			includesAfter = o.includesAfter;
			javascript = o.javascript;
			editorType = o.editorType;
			editorOptions = o.editorOptions;
			fitToContentHeight = o.fitToContentHeight;
			padding = o.padding;
			
			loadMethod = o.popUpLoadMethod;
			chrome = o.popUpChrome;
			title = o.popUpTitle;
			modal = o.popUpModal;
			minimizable = o.popUpMinimizable;
			maximizable = o.popUpMaximizable;
			closable = o.popUpCloseable;
			centerPopUp = o.popUpLaunchCentered;
			alert = o.popUpAlert;
			alertButtons = o.popUpAlertButtons;
		}
	}
}